package model

import (
	"time"

	"dev.ixmxm.top/rms/utils/log"
)

type RMSLog struct {
	Level     log.Level `json:"-" bson:"level"`
	LevelStr  string    `json:"level" bson:"level_str"`
	Msg       string    `json:"log_msg" bson:"msg"`
	StartTime string    `json:"start_time" bson:"start_time"`
	CreatedAt time.Time `json:"created_at" bson:"created_at"`
}
type ExportRMSLog struct {
	StartTime string
	LevelStr  string
	Msg       string
}

func (RMSLog) TableName() string {
	return "t_data_rms_logs"
}

type RobotLog struct {
	Code      uint32    `json:"err_code" bson:"code"`
	Msg       string    `json:"err_msg" bson:"msg"`
	AgvID     string    `json:"agv_id" bson:"agv_id"`
	StartTime string    `json:"start_time" bson:"start_time"`
	CreatedAt time.Time `json:"-" bson:"created_at"`
}
type ExportRobotLog struct {
	StartTime string
	AgvID     string
	Code      uint32
	Msg       string
}

func (RobotLog) TableName() string {
	return "t_data_robot_logs"
}
